<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>反欺诈调查</title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/css/gxxjkefu-normalize.css">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link rel="stylesheet" href="/Public/css/model.css">
    <link rel="stylesheet" href="/Public/css/pager.css">
    <style>
        body{
            font-size: 12px;
        }
        .user_name{
            cursor: pointer;
            color: black;
        }
        .user_name:hover{
            color: #31b0d5;
        }
        .notice_info {
            padding: 25px 0 3%;
            line-height: 35px;
            color: #979797;
            float: left;
            width: 100%;
            background: #ffffff;
        }

        .feedback_ul {
            text-align: center;
            margin: 0 auto 50px;
        }

        .feedback_ul li {
            text-align: center;
            display: inline-block;
            margin: 0 30px;
        }

        .feedback_ul li a {
            color: black;
            padding: 0 0 10px;
        }

        .feedback_ul .a_active {
            color: #57bee9;
            border-bottom: solid 2px #57bee9;
        }

        .search_table thead {
            background: #f0f8fa;
            border: none;
        }

        .table {
            color: #000000;
            margin: 0 auto;
            width: 100% !important;
            text-align: center;
        }

        .search_table input {
            background: none;
            border: none;
        }

        .table > thead > tr > th {
            border-bottom: none !important;
            text-align: center !important;
        }

        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
            border-top: 1px solid #f0f8fa !important;
            text-align: center !important;
        }

        .remark_div {
            color: black;
            height: 340px;
            width: 90%;
            margin: 200px auto 0;
            position: relative;
        }

        .remark_div input {
            position: absolute;
            right: 0;
            bottom: 0;
            background: #ff815a;
            border-radius: 3px;
            border: none;
            color: white;
            margin-top: 20px;
            width: 200px;
            height: 40px;
        }

        .remark_div textarea {
            background: #f5f5f5;
            border: none;
            padding: 1%;
        }
    </style>
</head>
<body>
<div id="main_C" style="float: left;width: 100%" class="animated fadeInRight">
    <div class="title_info">
        <span>反欺诈调查</span>
    </div>
    <div class="white_bgColor notice_info">
        <!--顶部选项-->
        <ul class="feedback_ul">
            <li><a href="javascript:void(0);" class="a_active">待查列表</a></li>
            <li><a href="javascript:void(0);">待审核列表</a></li>
            <li><a href="javascript:void(0);">通过审核列表</a></li>
            <li><a href="javascript:void(0);">未过审核列表</a></li>
        </ul>
        <!--待查列表-->
        <div class="search_table">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>手机号码</th>
                    <th>评分</th>
                    <th>状态</th>
                    <th>认证时间</th>
                    <th>受理人</th>
                    <th>调查时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="t_wait_lst" class="animated fadeInRight">

                </tbody>
            </table>

            <div id="pageone" style="width: 1200px;text-align: center;margin: 100px auto 0">
                <ul class="pagination" id="page1"></ul>
                <div class="pageJump">
                    <span>跳转到</span>
                    <input type="text"/>
                    <span>页</span>
                    <button type="button" class="button"></button>
                </div>
            </div>
        </div>
        <!--待审核列表-->
        <div style="display: none" class="search_table">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>手机号码</th>
                    <th>提交时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="t_check_list" class="animated fadeInRight">
                </tbody>
            </table>

            <div id="pagetwo" style="width: 1200px;text-align: center;margin: 100px auto 0">
                <ul class="pagination" id="page2"></ul>
                <div class="pageJump">
                    <span>跳转到</span>
                    <input type="text"/>
                    <span>页</span>
                    <button type="button" class="button"></button>
                </div>
            </div>
        </div>

        <!--通过审核列表-->
        <div style="display: none" class="search_table">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>手机号码</th>
                    <th>用户评分</th>
                    <th>审核时间</th>
                    <th>调查员</th>
                </tr>
                </thead>
                <tbody id="t_pass_list" class="animated fadeInRight">
                </tbody>
            </table>

            <div id="pagethree" style="width: 1200px;text-align: center;margin: 100px auto 0">
                <ul class="pagination" id="page3"></ul>
                <div class="pageJump">
                    <span>跳转到</span>
                    <input type="text"/>
                    <span>页</span>
                    <button type="button" class="button"></button>
                </div>
            </div>

        </div>
        <!--未通过审核列表-->
        <div style="display: none" class="search_table">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>手机号码</th>
                    <th>用户评分</th>
                    <th>审核时间</th>
                    <th>调查员</th>
                </tr>
                </thead>
                <tbody id="refuse_lst" class="animated fadeInRight">

                </tbody>
            </table>

            <div id="pagefour" style="width: 1200px;text-align: center;margin: 100px auto 0">
                <ul class="pagination" id="page4"></ul>
                <div class="pageJump">
                    <span>跳转到</span>
                    <input type="text"/>
                    <span>页</span>
                    <button type="button" class="button"></button>
                </div>
            </div>
        </div>
    </div>

    <p style="margin-top: 15px"><a onclick="show_anti_fraud_view()"
                                   style="font-size: medium;text-decoration: underline;color: #57bee9;">反欺诈话术规范</a></p>
</div>
</div>


</div>
<script src="/Public/js/jquery-3.2.1.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script src="/Public/js/pager.js"></script>
<script src="/Public/js/layer/layer.js"></script>
<script src="/Public/js/layui/layui.js"></script>

<script>


    //调用父方法

    function user_info(mobile) {
        console.log('useree',mobile);
        window.parent.get_user(mobile);
    }



//    sessionStorage.setItem('', 1);
    var url = "<{$SERVER_NAME}>/AntiUser/anti_user_list";
    $.post(url, {page: 1}, function (data) {
        console.log('111111', data);
        if (data.code == '1001') {
            var obj = data.result;
            var s = "";
            var len = obj.length;
            console.log('32232', len);
            if (data.count < 10) {
                $("#pageone").hide();
            }
            /*分页*/
            Page({
                num: data.total,					//页码数
                startnum: 1,				//指定页码
                elem: $('#page1'),		//指定的元素
                callback: function (n) {	//回调函数
                    $.post(url, {page: n}, function (data) {
                        if (data.code == '1001') {
                            var obj = data.result;
                            var s = "";
                            var len = obj.length;
                            console.log('32232', data.total);
                            for (var i = 0; i < len; i++) {
                                s += " <tr> " +
                                    "<td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td> " +
                                    " <td>" + obj[i].sex + "</td>" +
                                    " <td>" + obj[i].user_mobile + "</td>" +
                                    " <td>" + obj[i].logic_score + "</td> " +
                                    "<td class='red_color'>" + obj[i].status + "</td>" +
                                    " <td>" + obj[i].cert_time + "</td> " +
                                    "<td>" + obj[i].admin_name + "</td>" +
                                    "<td>" + obj[i].ready_time + "</td>" +
                                    " <td> <input class='remark_btn blue_color' type='button' value='开始调查'  onclick=remark(" + obj[i].id + ",'"+obj[i].mobile+"') />" +
                                    "</td>" +
                                    " </tr>";
                            }
                            document.getElementById("t_wait_lst").innerHTML = s;
                        }
                    });
                }
            });
            for (var i = 0; i < len; i++) {
//                var vid="'"+obj[i].vid +"'";
                s += " <tr> " +
                    "<td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td> " +
                    " <td>" + obj[i].sex + "</td>" +
                    " <td>" + obj[i].user_mobile + "</td> " +
                    "<td>" + obj[i].logic_score + "</td>" +
                    " <td class='red_color'>" + obj[i].status + "</td>" +
                    "<td>" + obj[i].cert_time + "</td> " +
                    "<td>" + obj[i].admin_name + "</td> " +
                    "<td>" + obj[i].ready_time + "</td> " +
                    "<td><input class='remark_btn blue_color' type='button' value='开始调查'  onclick=remark(" + obj[i].id + ",'"+obj[i].mobile+"') /> " +
                    "</td>" +
                    " </tr>";
            }
            document.getElementById("t_wait_lst").innerHTML = s;
        } else {

        }
    });

    /*备注*/
    $(document).ready(function () {
        $(".remark_btn").click(function () {
            $(".remark_div").fadeToggle(500);
        });
    });
    //选项卡切换
    $(document).ready(function () {
        $(".feedback_ul li").click(function () {
            $(".search_table").hide().eq($(this).index()).show();
            $(".feedback_ul").find("li a").removeClass("a_active");
            $(this).children("a").addClass("a_active");

            var index = $(this).index() + 1;//获取索引
            sessionStorage.setItem("survey_tab_index", index - 1);
            sessionStorage.setItem('survey_page', 1);
            get_data(index,1);
//            switch (index) {
//                case 1://待查
//                    var url = "<{$SERVER_NAME}>/AntiUser/anti_user_list";
//                    $.post(url, {page: 1}, function (data) {
//                        console.log('909090', data);
//                        if (data.code == '1001') {
//                            var obj = data.result;
//                            var s = "";
//                            var len = obj.length;
//                            console.log('32232', data.total);
//                            if (data.count < 10) {
//                                $("#pageone").hide();
//                            }
//                            sessionStorage.setItem("survey_total", data.total);
//
//                            /*分页*/
//                            Page({
//                                num: data.total,					//页码数
//                                startnum: 1,				//指定页码
//                                elem: $('#page1'),		//指定的元素
//                                callback: function (n) {	//回调函数
//                                    sessionStorage.setItem('survey_page', n);
//                                    $.post(url, {page: n, type: 2}, function (data) {
//                                        if (data.code == '1001') {
//                                            var obj = data.result;
//                                            var s = "";
//                                            var len = obj.length;
//                                            console.log('32232', data.total);
//
//                                            for (var i = 0; i < len; i++) {
//                                                s += " <tr> " +
//                                                    "<td>" + obj[i].name + "</td> " +
//                                                    " <td>" + obj[i].sex + "</td>" +
//                                                    " <td>" + obj[i].mobile + "</td>" +
//                                                    " <td>" + obj[i].logic_score + "</td> " +
//                                                    "<td class='red_color'>" + obj[i].status + "</td> " +
//                                                    "<td>" + obj[i].cert_time + "</td> " +
//                                                    "<td>" + obj[i].admin_name + "</td> " +
//                                                    "<td><input class='remark_btn blue_color' type='button' value='开始调查'  onclick='remark(" + obj[i].id + ")' />  </td> " +
//                                                    "</tr>";
//
////                                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td> <td>" + obj[i].repayment_no + "</td> <td>" + obj[i].repayment_money + "</td> <td>" + obj[i].should_time + "</td> <td>" + obj[i].overdue_day + "</td> <td>" + obj[i].overdue_money + "</td> <td class='red_color'>" + obj[i].status + "</td> <td><input class='remark_btn blue_color' type='button'value='开始调查'  onclick='remark(" + obj[i].repayment_no + ")'/> <input class='green_color' type='button' value='工单'/> </td> </tr>";
//                                            }
//                                            document.getElementById("t_wait_lst").innerHTML = s;
//                                        }
//
//                                    });
//                                }
//                            });
//
//                            for (var i = 0; i < len; i++) {
//                                s += " <tr> " +
//                                    "<td>" + obj[i].name + "</td> " +
//                                    " <td>" + obj[i].sex + "</td>" +
//                                    " <td>" + obj[i].mobile + "</td>" +
//                                    " <td>" + obj[i].logic_score + "</td>" +
//                                    " <td class='red_color'>" + obj[i].status + "</td>" +
//                                    " <td>" + obj[i].cert_time + "</td> " +
//                                    "<td>" + obj[i].admin_name + "</td> " +
//                                    "<td><input class='remark_btn blue_color' type='button' value='开始调查'  onclick='remark(" + obj[i].id + ")'/>  </td> " +
//                                    "</tr>";
//
////                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td> <td>" + obj[i].repayment_no + "</td> <td>" + obj[i].repayment_money + "</td> <td>" + obj[i].should_time + "</td> <td>" + obj[i].overdue_day + "</td> <td>" + obj[i].overdue_money + "</td> <td class='red_color'>" + obj[i].status + "</td> <td><input class='remark_btn blue_color' type='button'value='开始调查'  onclick='remark(" + obj[i].repayment_no + ")' /> <input class='green_color' type='button' value='工单'/> </td> </tr>";
//                            }
//                            document.getElementById("t_wait_lst").innerHTML = s;
//                        } else {
//
//                        }
//                    });
//                    break;
//                case 2://待审核
//                    var url = "<{$SERVER_NAME}>/AntiUser/fk_check";
//                    $.post(url, {page: 1}, function (data) {
//                        console.log('909090', data);
//                        if (data.code == '1001') {
//                            var obj = data.result;
//                            var s = "";
//                            var len = obj.length;
//                            console.log('32232', data.total);
//                            if (data.count < 10) {
//                                $("#pagetwo").hide();
//                            }
//                            sessionStorage.setItem("survey_total", data.total);
//                            /*分页*/
//                            Page({
//                                num: data.total,					//页码数
//                                startnum: 1,				//指定页码
//                                elem: $('#page2'),		//指定的元素
//                                callback: function (n) {	//回调函数
//                                    sessionStorage.setItem('survey_page', n);
//                                    $.post(url, {page: n, type: 2}, function (data) {
//                                        if (data.code == '1001') {
//                                            var obj = data.result;
//                                            var s = "";
//                                            var len = obj.length;
//                                            console.log('32232', data.total);
//
//                                            for (var i = 0; i < len; i++) {
//                                                var href = "<{$SERVER_NAME}>/AntiUser/survey_details?vid=" + obj[i].vid;
//                                                console.log('1111111', href);
//                                                s += " <tr>" +
//                                                    " <td>" + obj[i].name + "</td>  " +
//                                                    "<td>" + obj[i].sex + "</td> " +
//                                                    "<td>" + obj[i].mobile + "</td>" +
//                                                    "<td>" + obj[i].commit_time + "</td> " +
//                                                    "<td class='red_color'>" + obj[i].status + "</td> " +
//                                                    "<td><a class='remark_btn blue_color' href='" + href + "' >修改</a></td> " +
//                                                    "</tr>";
//                                            }
//                                            document.getElementById("t_check_list").innerHTML = s;
//                                        }
//                                    });
//                                }
//                            });
//
//                            for (var i = 0; i < len; i++) {
//                                s += " <tr> <td>" + obj[i].name + "</td> " +
//                                    " <td>" + obj[i].sex + "</td> " +
//                                    "<td>" + obj[i].mobile + "</td>" +
//                                    "<td>" + obj[i].commit_time + "</td> " +
//                                    "<td class='red_color'>" + obj[i].status + "</td>" +
//                                    "<td><a class='remark_btn blue_color' href='<{$SERVER_NAME}>/AntiUser/survey_details?vid=" + obj[i].vid + "'>修改</a></td> " +
//                                    " </tr>";
//                            }
//                            document.getElementById("t_check_list").innerHTML = s;
//                        } else {
//
//                        }
//                    });
//                    break;
//                case 3://通过审核
//                    var url = "<{$SERVER_NAME}>/AntiUser/pass_list";
//                    $.post(url, {page: 1}, function (data) {
//                        console.log('909090', data);
//                        if (data.code == '1001') {
//                            var obj = data.result;
//                            var s = "";
//                            var len = obj.length;
//                            if (data.count < 10) {
//                                $("#pagethree").hide();
//                            }
//                            sessionStorage.setItem("survey_total", data.total);
//                            /*分页*/
//                            Page({
//                                num: data.total,					//页码数
//                                startnum: 1,				//指定页码
//                                elem: $('#page3'),		//指定的元素
//                                callback: function (n) {	//回调函数
//                                    sessionStorage.setItem('survey_page', n);
//                                    $.post(url, {page: n, type: 3}, function (data) {
//                                        if (data.code == '1001') {
//                                            var obj = data.result;
//                                            var s = "";
//                                            var len = obj.length;
//                                            console.log('32232', data.total);
//                                            for (var i = 0; i < len; i++) {
//                                                s += " <tr> " +
//                                                    "<td>" + obj[i].name + "</td>" +
//                                                    "  <td>" + obj[i].sex + "</td>" +
//                                                    " <td>" + obj[i].mobile + "</td>" +
//                                                    "<td>" + obj[i].logic_score + "</td>" +
//                                                    " <td >" + obj[i].check_time + "</td> " +
//                                                    "<td>" + obj[i].admin_name + "</td> </tr>";
//                                            }
//                                            document.getElementById("t_pass_list").innerHTML = s;
//
//                                        }
//
//                                    });
//                                }
//                            });
//
//
//                            for (var i = 0; i < len; i++) {
//                                s += " <tr>" +
//                                    " <td>" + obj[i].name + "</td>" +
//                                    "  <td>" + obj[i].sex + "</td> " +
//                                    "<td>" + obj[i].mobile + "</td>" +
//                                    "<td>" + obj[i].logic_score + "</td> " +
//                                    "<td >" + obj[i].check_time + "</td> " +
//                                    "<td>" + obj[i].admin_name + "</td> " +
//                                    "</tr>";
//                            }
//                            document.getElementById("t_pass_list").innerHTML = s;
//
//                        } else {
//
//                        }
//                    });
//
//
//                    break;
//                case 4://未过审核
//
//                    var url = "<{$SERVER_NAME}>/AntiUser/pass_list";
//                    $.post(url, {page: 1, type: 4}, function (data) {
//                        console.log('909090', data);
//                        if (data.code == '1001') {
//                            var obj = data.result;
//                            var s = "";
//                            var len = obj.length;
//                            console.log('322333332', data.total);
//                            if (data.count < 10) {
//                                $("#pagefour").hide();
//                            }
//                            sessionStorage.setItem("survey_total", data.total);
//                            /*分页*/
//                            Page({
//                                num: data.total,					//页码数
//                                startnum: 1,				//指定页码
//                                elem: $('#page4'),		//指定的元素
//                                callback: function (n) {	//回调函数
//                                    sessionStorage.setItem('survey_page', n);
//                                    $.post(url, {page: n, type: 3}, function (data) {
//                                        if (data.code == '1001') {
//                                            var obj = data.result;
//                                            var s = "";
//                                            var len = obj.length;
//                                            console.log('32232', data.total);
//
//                                            for (var i = 0; i < len; i++) {
//                                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td><td>" + obj[i].logic_score + "</td> <td >" + obj[i].check_time + "</td> <td>" + obj[i].admin_name + "</td> </tr>";
//                                            }
//                                            document.getElementById("refuse_lst").innerHTML = s;
//                                        }
//                                    });
//                                }
//                            });
//
//                            for (var i = 0; i < len; i++) {
//                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td><td>" + obj[i].logic_score + "</td> <td >" + obj[i].check_time + "</td> <td>" + obj[i].admin_name + "</td> </tr>";
//                            }
//                            document.getElementById("refuse_lst").innerHTML = s;
//                        } else {
//
//                        }
//                    });
//                    break;
//            }
        });

//  返回前的页面
        var tab_index = parseInt(sessionStorage.getItem('survey_tab_index'));
        var page = parseInt(sessionStorage.getItem('survey_page'));
        var survey_total = parseInt(sessionStorage.getItem('survey_total'));
        console.log('00000tab_index',tab_index);
        console.log('00000page',page);
        console.log('00000survey_total',survey_total);
        if (tab_index >= 0 || page >= 0) {
            if (tab_index == '' || tab_index == null) {
                tab_index = 0;
            }

            $(".search_table").hide().eq(tab_index).show();
            $(".feedback_ul").find("li a").removeClass("a_active");
            $(".feedback_ul li a").eq(tab_index).addClass("a_active");

            get_data(tab_index+1,page);

        }
    });


    //返回的页面


    //显示反欺诈规范页面
    function show_anti_fraud_view() {

        layer.open({
            title: '反欺诈话术规范',
            type: 2,
            area: ['70%', '70%'],
            maxmin: true,
            offset: '100px',
            content: '<{$SERVER_NAME}>/AntiUser/anti_fraud_view.html',
            success: function (layero) {
                layero.find('.layui-layer-min').remove();
            }
        });
    }

    //备注页面
    function remark(id,mobile) {
        console.log('12121', id);
        window.parent.get_user(mobile);
        window.location.href = "<{$SERVER_NAME}>/AntiUser/survey.html?id=" + id;

    }

    //获取当前tab的
    function get_data(index,page) {
        switch (index) {
            case 1://待查
                var url = "<{$SERVER_NAME}>/AntiUser/anti_user_list";
                $.post(url, {page: page}, function (data) {
                    console.log('909090', data);
                    if (data.code == '1001') {
                        var obj = data.result;
                        var s = "";
                        var len = obj.length;
                        console.log('32232', data.total);
                        if (data.count < 10) {
                            $("#pageone").hide();
                        }

                        sessionStorage.setItem("survey_total", data.total);

                        /*分页*/
                        Page({
                            num: data.total,					//页码数
                            startnum: page,				//指定页码
                            elem: $('#page1'),		//指定的元素
                            callback: function (n) {	//回调函数
                                sessionStorage.setItem('survey_page', n);
                                $.post(url, {page: n, type: 2}, function (data) {
                                    if (data.code == '1001') {
                                        var obj = data.result;
                                        var s = "";
                                        var len = obj.length;
                                        console.log('32232', data.total);

                                        for (var i = 0; i < len; i++) {
                                            s += " <tr> " +
                                                "<td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td> " +
                                                " <td>" + obj[i].sex + "</td>" +
                                                " <td>" + obj[i].user_mobile + "</td>" +
                                                " <td>" + obj[i].logic_score + "</td> " +
                                                "<td class='red_color'>" + obj[i].status + "</td> " +
                                                "<td>" + obj[i].cert_time + "</td> " +
                                                "<td>" + obj[i].admin_name + "</td> " +
                                                "<td>" + obj[i].ready_time + "</td> " +
                                                "<td><input class='remark_btn blue_color' type='button' value='开始调查'  onclick=remark(" + obj[i].id + ",'"+obj[i].mobile+"') />  </td> " +
                                                "</tr>";

//                                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td> <td>" + obj[i].repayment_no + "</td> <td>" + obj[i].repayment_money + "</td> <td>" + obj[i].should_time + "</td> <td>" + obj[i].overdue_day + "</td> <td>" + obj[i].overdue_money + "</td> <td class='red_color'>" + obj[i].status + "</td> <td><input class='remark_btn blue_color' type='button'value='开始调查'  onclick='remark(" + obj[i].repayment_no + ")'/> <input class='green_color' type='button' value='工单'/> </td> </tr>";
                                        }
                                        document.getElementById("t_wait_lst").innerHTML = s;
                                    }

                                });
                            }
                        });

                        for (var i = 0; i < len; i++) {
                            s += " <tr> " +
                                "<td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td> " +
                                " <td>" + obj[i].sex + "</td>" +
                                " <td>" + obj[i].user_mobile + "</td>" +
                                " <td>" + obj[i].logic_score + "</td>" +
                                " <td class='red_color'>" + obj[i].status + "</td>" +
                                " <td>" + obj[i].cert_time + "</td> " +
                                "<td>" + obj[i].admin_name + "</td> " +
                                "<td>" + obj[i].ready_time + "</td> " +
                                "<td><input class='remark_btn blue_color' type='button' value='开始调查'  onclick=remark(" + obj[i].id + ",'"+obj[i].mobile+"') />  </td> " +
                                "</tr>";

//                                s += " <tr> <td>" + obj[i].name + "</td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].mobile + "</td> <td>" + obj[i].repayment_no + "</td> <td>" + obj[i].repayment_money + "</td> <td>" + obj[i].should_time + "</td> <td>" + obj[i].overdue_day + "</td> <td>" + obj[i].overdue_money + "</td> <td class='red_color'>" + obj[i].status + "</td> <td><input class='remark_btn blue_color' type='button'value='开始调查'  onclick='remark(" + obj[i].repayment_no + ")' /> <input class='green_color' type='button' value='工单'/> </td> </tr>";
                        }
                        document.getElementById("t_wait_lst").innerHTML = s;
                    } else {

                    }
                });
                break;
            case 2://待审核
                var url = "<{$SERVER_NAME}>/AntiUser/fk_check";
                $.post(url, {page: page}, function (data) {
                    console.log('909090', data);
                    if (data.code == '1001') {
                        var obj = data.result;
                        var s = "";
                        var len = obj.length;
                        console.log('32232', data.total);
                        if (data.count < 10) {
                            $("#pagetwo").hide();
                        }
                        sessionStorage.setItem("survey_total", data.total);
                        /*分页*/
                        Page({
                            num: data.total,					//页码数
                            startnum: page,				//指定页码
                            elem: $('#page2'),		//指定的元素
                            callback: function (n) {	//回调函数
                                sessionStorage.setItem('survey_page', n);
                                $.post(url, {page: n, type: 2}, function (data) {
                                    if (data.code == '1001') {
                                        var obj = data.result;
                                        var s = "";
                                        var len = obj.length;
                                        console.log('32232', data.total);

                                        for (var i = 0; i < len; i++) {
                                            var href = "<{$SERVER_NAME}>/AntiUser/survey_details?vid=" + obj[i].vid;
                                            console.log('1111111', href);
                                            s += " <tr>" +
                                                " <td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td>  " +
                                                "<td>" + obj[i].sex + "</td> " +
                                                "<td>" + obj[i].user_mobile + "</td>" +
                                                "<td>" + obj[i].commit_time + "</td> " +
                                                "<td class='red_color'>" + obj[i].status + "</td> " +
                                                "<td><a class='remark_btn blue_color' href='" + href + "' >修改</a></td> " +
                                                "</tr>";
                                        }
                                        document.getElementById("t_check_list").innerHTML = s;
                                    }
                                });
                            }
                        });

                        for (var i = 0; i < len; i++) {
                            s += " <tr> <td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td> " +
                                " <td>" + obj[i].sex + "</td> " +
                                "<td>" + obj[i].user_mobile + "</td>" +
                                "<td>" + obj[i].commit_time + "</td> " +
                                "<td class='red_color'>" + obj[i].status + "</td>" +
                                "<td><a class='remark_btn blue_color' href='<{$SERVER_NAME}>/AntiUser/survey_details?vid=" + obj[i].vid + "'>修改</a></td> " +
                                " </tr>";
                        }
                        document.getElementById("t_check_list").innerHTML = s;
                    } else {

                    }
                });
                break;
            case 3://通过审核
                var url = "<{$SERVER_NAME}>/AntiUser/pass_list";
                $.post(url, {page: page}, function (data) {
                    console.log('909090', data);
                    if (data.code == '1001') {
                        var obj = data.result;
                        var s = "";
                        var len = obj.length;
                        if (data.count < 10) {
                            $("#pagethree").hide();
                        }
                        sessionStorage.setItem("survey_total", data.total);
                        /*分页*/
                        Page({
                            num: data.total,					//页码数
                            startnum: page,				//指定页码
                            elem: $('#page3'),		//指定的元素
                            callback: function (n) {	//回调函数
                                sessionStorage.setItem('survey_page', n);
                                $.post(url, {page: n, type: 3}, function (data) {
                                    if (data.code == '1001') {
                                        var obj = data.result;
                                        var s = "";
                                        var len = obj.length;
                                        console.log('32232', data.total);
                                        for (var i = 0; i < len; i++) {
                                            s += " <tr> " +
                                                "<td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td>" +
                                                "  <td>" + obj[i].sex + "</td>" +
                                                " <td>" + obj[i].user_mobile + "</td>" +
                                                "<td>" + obj[i].logic_score + "</td>" +
                                                " <td >" + obj[i].check_time + "</td> " +
                                                "<td>" + obj[i].admin_name + "</td> </tr>";
                                        }
                                        document.getElementById("t_pass_list").innerHTML = s;

                                    }

                                });
                            }
                        });


                        for (var i = 0; i < len; i++) {
                            s += " <tr>" +
                                " <td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td>" +
                                "  <td>" + obj[i].sex + "</td> " +
                                "<td>" + obj[i].user_mobile + "</td>" +
                                "<td>" + obj[i].logic_score + "</td> " +
                                "<td >" + obj[i].check_time + "</td> " +
                                "<td>" + obj[i].admin_name + "</td> " +
                                "</tr>";
                        }
                        document.getElementById("t_pass_list").innerHTML = s;

                    } else {

                    }
                });


                break;
            case 4://未过审核

                var url = "<{$SERVER_NAME}>/AntiUser/pass_list";
                $.post(url, {page: page, type: 4}, function (data) {
                    console.log('909090', data);
                    if (data.code == '1001') {
                        var obj = data.result;
                        var s = "";
                        var len = obj.length;
                        console.log('322333332', data.total);
                        if (data.count < 10) {
                            $("#pagefour").hide();
                        }
                        sessionStorage.setItem("survey_total", data.total);
                        /*分页*/
                        Page({
                            num: data.total,					//页码数
                            startnum: page,				//指定页码
                            elem: $('#page4'),		//指定的元素
                            callback: function (n) {	//回调函数
                                sessionStorage.setItem('survey_page', n);
                                $.post(url, {page: n, type: 4}, function (data) {
                                    if (data.code == '1001') {
                                        var obj = data.result;
                                        var s = "";
                                        var len = obj.length;
                                        console.log('32232', data.total);

                                        for (var i = 0; i < len; i++) {
                                            s += " <tr> <td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].user_mobile + "</td><td>" + obj[i].logic_score + "</td> <td >" + obj[i].check_time + "</td> <td>" + obj[i].admin_name + "</td> </tr>";
                                        }
                                        document.getElementById("refuse_lst").innerHTML = s;
                                    }
                                });
                            }
                        });

                        for (var i = 0; i < len; i++) {
                            s += " <tr> <td> <a class='user_name' onclick=user_info('"+ obj[i].mobile+"')>" + obj[i].name + "</a></td>  <td>" + obj[i].sex + "</td> <td>" + obj[i].user_mobile + "</td><td>" + obj[i].logic_score + "</td> <td >" + obj[i].check_time + "</td> <td>" + obj[i].admin_name + "</td> </tr>";
                        }
                        document.getElementById("refuse_lst").innerHTML = s;
                    } else {

                    }
                });
                break;
        }
    }
</script>

</body>
</html>